package cn.itsource.pethome.user.constant;

/**
 * @description: 描述:
 * @date: 2020/8/17 17:37
 * @author: summer
 * version: 1.0
 */
public class WechatConstant {

    public static final String APPID="wxd853562a0548a7d0";
    public static final String SECRET="4a5d5615f93f24bdba2ba8534642dbb6";
    //回调域名
    public static final String REDIRECT_URI="http://bugtracker.itsource.cn/wechat/callback";
    //获取授权码地址
    public static final String CODEURL="https://open.weixin.qq.com/connect/qrconnect?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_login&state=STATE#wechat_redirect";
    //获取token地址
    public static final String ACCESS_TOKEN="https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
    //获取用户信息的url
    public static final String USERINFO_URL="https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";

    //转跳页面前缀
    public static final String REDIRECT_SERVER="http://localhost:8081";
    //转跳页面
    public static final String BINDING="/binding.html";

}
